<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="sj" tagdir="/WEB-INF/tags/spring-jquery-tags"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<script type="text/javascript">
	$(document)
			.ready(
					function() {
						$('#pageTitle')
								.text(
										'<spring:message code="viewCipeprojectModifications.heading" />');
						$("#viewCipeprojectModificationsForm").validate({
							rules : {
								name : {
									required : true
								}
							}
						});
					});
	$('.close-button').click(function() {
		if (confirm('Are you sure you want to close the form?')) {
			window.location = '../secure/showDashboard.do';
		}
	});
</script>
<div id="viewCipeprojectModificationsDiv">
	<form:form name="viewCipeprojectModificationsForm" id="viewCipeprojectModificationsForm" method="post" modelAttribute="cipeproject">
		<form:hidden path="id" />
		<div class="main_form">
			<div class="form_head">
				<a href="#" class="close-button gray_btn floatR">Close Form</a><br class="clear" />
			</div>
			<div class="form_cont">
				<div id="viewCipeprojectModificationsDiv" class="hastable" style="overflow: auto">
					<table class="tablesorter">
						<thead>
							<tr>
								<th><spring:message code="viewCipeprojectModifications.table.heading.id" /></th>
								<th><spring:message code="viewCipeprojectModifications.table.heading.type" /></th>
								<th><spring:message code="viewCipeprojectModifications.table.heading.from" /></th>
								<th><spring:message code="viewCipeprojectModifications.table.heading.to" /></th>
								<th><spring:message code="viewCipeprojectModifications.table.heading.date" /></th>
								<th><spring:message code="viewCipeprojectModifications.table.heading.by" /></th>
								<th><spring:message code="viewCipeprojectModifications.table.heading.fileLocation" /></th>
							</tr>
						</thead>
						<tbody id="paymentRqst">
							<c:forEach items="${cipeprojectModificationsList}" var="cipeproject">
								<tr>
									<td>${cipeproject.acronym}</td>
									<td>${cipeproject.acronym}</td>
									<td>${cipeproject.partner.partnerName}</td>
									<td>${cipeproject.projectTitle}</td>
									<td>${cipeproject.cipeprojecttype.displayName}</td>
									<td>${cipeproject.programOfficer.fullName}</td>
									<td>${cipeproject.programAssistant.fullName}</td>
								</tr>
							</c:forEach>
						</tbody>
					</table>
				</div>
			</div>
		</div>
	</form:form>
</div>